package com.region.plugin.proxy.cglib;

import com.region.plugin.ProceedPoint;
import net.sf.cglib.proxy.MethodProxy;

/**
 * @author 26225
 * @date 2024/9/7 13:56
 * @description
 */
public class CglibProceedPoint extends ProceedPoint {

    private MethodProxy methodProxy;

    public CglibProceedPoint(Object proxy, Object[] args, MethodProxy methodProxy) {
        super(proxy, args);
        this.methodProxy = methodProxy;
    }

    @Override
    public Object proceed() throws Throwable {
        return methodProxy.invoke(proxy, args);
    }
}
